<?php

include_once 'Thesis.php';
/**
 * JournalThesis
 * 期刊论文
 *
 * @author ddj
 */
class JournalThesis extends Thesis{
    private $journalName;       // 期刊名
    private $volume;            // 卷
    private $issue;             // 期
    private $year;              // 年
    private $searchType;        // 检索类别（EI/SCI）
    private $searchID;          // 检索号
    private $influenceFactor;   // 影响因子
    private $recommendLevel;    // 计算机学会推荐级别（A/B/C/无）
    private $auditingState;     // 审核状态
    
    function __construct($attributesArray=null) {
        parent::__construct(null, null, null);
        $this->journalName = null;
        $this->volume = null;
        $this->issue = null;
        $this->year = null;
        $this->searchType = null;
        $this->searchID = null;
        $this->influenceFactor = null;
        $this->recommendLevel = null;
        $this->auditingState = null;
        
        if($attributesArray!=null){
            foreach ($attributesArray as $key => $value) {
                $this->$key = $value;
            }
        }
    }

    function __get($propertyName) {
        if(isset($this->$propertyName)){
            return $this->$propertyName;
        }else{
            //
            return NULL;
        }
    }
    
    function __set($propertyName, $value) {
        $this->$propertyName = trim($value);
    }
    
}
